package com.xkdx.caipiao.presistence.bank;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xkdx.caipiao.module.network.AbsModule;

public class BindBankModule extends AbsModule {

	public String code;
	public String message="";

	@Override
	public void parseData() throws Exception {
		try {
			backJson = (JSONArray) result;

			for (int i = 0; i < backJson.size(); i++) {
				jsonObj = (JSONObject) backJson.get(i);
				String sortOfAct = jsonObj.getString("Act");
				message=jsonObj.getString("Message");
				if (sortOfAct.equals("Bind")) {
					parseBindBank(jsonObj.getString("Code"));
				}

			}
		} catch (Exception e) {
			throw e;
		}

	}

	private void parseBindBank(String code1) throws Exception {
		try {

			code = code1;

		} catch (Exception e) {

			throw e;
		}
	}
}
